package models;

import javax.persistence.Column;
import javax.persistence.Entity;

import org.hibernate.annotations.CollectionId;

import play.db.jpa.Model;

@Entity
public class Telephone extends Model {
	enum Type {
		HOME,
		COMMERCIAL,
		OTHERS;
	}

	@Column(nullable=false)
	private String number;
	@Column(nullable=false)
	private Type type;
	
	public String getNumber() {
		return number;
	}
	
	public void setNumber(String number) {
		this.number = number;
	}
	
	public Type getType() {
		return type;
	}
	
	public void setType(Type type) {
		this.type = type;
	}
}
